/// groupId : 1927435853266944
/// userId : 101
/// avatar : "https://randomuser.me/api/portraits/men/14.jpg"
/// groupRemark : "不忘初心"
/// nickName : "minim"
/// status : 1
/// role : 3

class GroupMemberModel {
  GroupMemberModel({
      num? groupId, 
      num? userId, 
      String? avatar, 
      String? groupRemark, 
      String? nickName, 
      num? status, 
      num? role,}){
    _groupId = groupId;
    _userId = userId;
    _avatar = avatar;
    _groupRemark = groupRemark;
    _nickName = nickName;
    _status = status;
    _role = role;
}

  GroupMemberModel.fromJson(dynamic json) {
    _groupId = json['groupId'];
    _userId = json['userId'];
    _avatar = json['avatar'];
    _groupRemark = json['groupRemark'];
    _nickName = json['nickName'];
    _status = json['status'];
    _role = json['role'];
  }
  num? _groupId;
  num? _userId;
  String? _avatar;
  String? _groupRemark;
  String? _nickName;
  num? _status;
  num? _role;
GroupMemberModel copyWith({  num? groupId,
  num? userId,
  String? avatar,
  String? groupRemark,
  String? nickName,
  num? status,
  num? role,
}) => GroupMemberModel(  groupId: groupId ?? _groupId,
  userId: userId ?? _userId,
  avatar: avatar ?? _avatar,
  groupRemark: groupRemark ?? _groupRemark,
  nickName: nickName ?? _nickName,
  status: status ?? _status,
  role: role ?? _role,
);
  num? get groupId => _groupId;
  num? get userId => _userId;
  String? get avatar => _avatar;
  String? get groupRemark => _groupRemark;
  String? get nickName => _nickName;
  num? get status => _status;
  num? get role => _role;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['groupId'] = _groupId;
    map['userId'] = _userId;
    map['avatar'] = _avatar;
    map['groupRemark'] = _groupRemark;
    map['nickName'] = _nickName;
    map['status'] = _status;
    map['role'] = _role;
    return map;
  }

}